Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor buoyancy and add moist anelastic option. #1914

Merged
merged 7 commits into from
Oct 28, 2024

Conversation

AMLattanzi
Copy link
Collaborator

The following PR adds a header file with each of the buoyancy types included as inline host device functions. Additionally a moist option for anelastic is included. This code is taken from Heus et al 2010. Where we have the following:
image
It is noted that the theta_v computation removes the L/(cp*Pi)*qc factor so we have omitted it in the PR for computational efficiency. Additionally, the source term enters the w momentum equation as q/theta_0 * theta_v. This is not in a form where the background state has been subtracted off. Following the cited work of Wyngaard 2004 we have:
image
Based upon the above, the background theta_v_0 obtained from p0 & r0 is utilized to define the deviation and reference value.

@AMLattanzi AMLattanzi requested a review from asalmgren October 28, 2024 20:28
@AMLattanzi AMLattanzi merged commit 651c1e5 into erf-model:development Oct 28, 2024
12 checks passed
@AMLattanzi AMLattanzi deleted the BuoyancyRefactor branch November 12, 2024 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant